#ifndef __RTSP_H_
#define __RTSP_H_
#include "stdint.h"


#ifdef __cplusplus
extern "C" {
#endif

typedef void *VID_RTSP_HANDLE;

typedef struct vid_rtsp_instance {
    void *IVidRTSP;
}vid_rtsp_ins;


struct rtsp_config
{
    int32_t port;
    char *username;
    char *password;
};

#define BUF_SIZE  (1024*500)

struct vidPacket{
	bool is_new_frame;
	bool is_IFrame;
	int32_t size;
	uint8_t buffer[BUF_SIZE];
};

int32_t vid_rtsp_init( rtsp_config *config, /*out*/VID_RTSP_HANDLE *handle );
int32_t vid_rtsp_deinit(/*in*/VID_RTSP_HANDLE handle);

int32_t vid_rtsp_deliver(/*in*/VID_RTSP_HANDLE handle, vidPacket *vid_pkg);

int32_t vid_rtsp_start(/*in*/VID_RTSP_HANDLE handle);
int32_t vid_rtsp_stop(/*in*/VID_RTSP_HANDLE handle);

#ifdef __cplusplus
}
#endif


#endif